<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="author" content="菜鸟开发小组" />
		<meta name="keywords" content="Hyper IT,hyper it,it,hyper,IT 博客,博客,交流平台,IT交流网站,IT服务网站,菜鸟开发小组"/>
		<meta name="description" content="由菜鸟才发小组开发的一个苛求质量的高大上的IT服务网站，为IT技术圈内的大牛与小白提供了一个良好的技术交流平台。"/>
		<meta name="robots" content="all"/>
		<title>Hyper IT</title>
		 
		 <link rel="icon" href="img/logo2.ico" type="image/x-icon"/>
		 <link rel="stylesheet" type="text/css" href="css/common.css"/>
		 <link rel="stylesheet" type="text/css" href="css/userInfo.css"/>
		 
		 <style>
		 	details summary::-webkit-details-marker { display:none; }
		 </style>
	</head>
	<body>
		<header>
			<div class="wrap">
				<div class="logo">
					<a href="index.html"><img src="img/logo.jpg" width="180" height="50"/></a>
				</div>
				<div class="header_right">
					<ul>
						<li class="bubble bubble1"></li>
						<li class="bubble bubble2"></li>
						<li class="bubble bubble3"></li>
						<li class="bubble bubble4"></li>
						<li class="bubble bubble5"></li>
						<li class="bubble bubble6"></li>
						<li class="bubble bubble7"></li>
						<li class="cross cross1">
							<img src="img/logo2.ico" />
						</li>
						<li class="cross cross2">
							<img src="img/logo2.ico" />
						</li>
						<li class="cross cross3">
							<img src="img/logo2.ico" />
						</li>
						<li class="cross cross4">
							<img src="img/logo2.ico" />
						</li>
					
					</ul>
				</div>
			</div>
		</header>
		<div class="main">
			<div class="wrap">
				<aside>
					<details open="open">
						<summary>用户管理</summary>
							<ul>
								<li><a href="allUsers.html" class="active">查看所有用户</a></li>
							</ul>
					</details>
					<details open="open">
						<summary>博文管理</summary>
							<ul>
								<li><a href="checkBlog.html">查看博文</a></li>
								<li><a href="checkNote.html">查看随笔</a></li>
							</ul>
					</details>
					<details open="open">
						<summary>商城管理</summary>
							<ul>
								<li><a href="goodsList.html">查看商品列表</a></li>
								<li><a href="newGoods.html">商品上新</a></li>
								<li><a href="order.html">订单详情</a></li>
							</ul>
					</details>
					<details open="open">
						<summary>职位管理</summary>
							<ul>
								<li><a href="position.html">查看职位</a></li>
							</ul>
					</details>
					<details open="open">
						<summary>标签管理</summary>
							<ul>
								<li><a href="tag.html">查看标签</a></li>
							</ul>
					</details>
					<details open="open">
						<summary>信息管理</summary>
							<ul>
								<li><a href="infoCenter.html">举报中心</a></li>
							</ul>
					</details>
				</aside>
				<section>
					<div class="dl">
						<dl>
							<dt>昵称：</dt>
							<dd id="name"></dd>
							<dt>性别：</dt>
							<dd id="sex"></dd>
						</dl>
						<dl>
							<dt>H币：</dt>
							<dd id="hb"></dd>
							<dt>经验等级：</dt>
							<dd id="level"></dd>
						</dl>
						<dl>
							<dt>粉丝：</dt>
							<dd id="fans"></dd>
						</dl>
						<dl>
							<dt>区域：</dt>
							<dd id="city"></dd>
						</dl>
						<dl>
							<dt>总签到天数：</dt>
							<dd id="total_sign"></dd>
							<dt>连续签到天数：</dt>
							<dd id="continous_sign"></dd>
						</dl>
						<dl>
							<dt>注册时间：</dt>
							<dd id="createtime"></dd>
						</dl>
						<dl>
							<dt>兴趣爱好：</dt>
							<dd id="hobby">
							
							</dd>
						</dl>
						<dl>
							<dt>收获地址：</dt>
							<dd id="address"></dd>
						</dl>
					</div>
					<div class="image">
						<img src="" width="120" height="120" />
					</div>
					<div class="return">
						<img src="img/返回.jpg" width="50" height="50"  onclick="back()"/>
					</div>
				</section>
			</div>
		</div>
		<footer>
			<div class="wrap">
				<p>Copyright &copy; 2017-5-5 Hyper IT of 菜鸟开发小组 All Rights Reserved.</p>
			</div>
		</footer>
		<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
		<script>
			$(document).ready(function(){
				var id = window.location.href.split('?')[1].split('=')[1];
				var url = "/HyperIT/userdetail/getUserInfo";
				var parm = "userDetail_id="+id;
				$.post(url,parm,function(data){
					if(data.serviceResult){
						$("#name").html(data.resultParm.userDetail.name);
						var sex = data.resultParm.userDetail.sex;
							if(sex == true){
								$("#sex").html("女");
							}
							else{
								$("#sex").html("男");
							}
						$("#hb").html(data.resultParm.userDetail.hb);
						$("#level").html("Lv "+data.resultParm.userDetail.level);
						$("#fans").html(data.resultParm.userDetail.fans);
						$("#city").html(data.resultParm.userDetail.city);
						$("#total_sign").html(data.resultParm.userDetail.total_sign+"天");
						$("#continous_sign").html(data.resultParm.userDetail.continous_sign+"天");
						$("#createtime").html(data.resultParm.userDetail.createtime.split(".")[0]);
						var hobby = data.resultParm.userDetail.hobby;
							if(hobby == ""){
								$("#hobby").html("这个人很懒，什么都没留下...");
							}else{
								$("#hobby").html(hobby);
							}
						$("#address").html(data.resultParm.userDetail.address);
						var path = data.resultParm.userDetail.head;
						$(".image img").attr("src",'../'+path);
					}
					else{
						alert(data.resultInfo);
					}
				});
			});
			function back(){
				window.location="allUsers.html";
			}
		</script>
	</body>
</html>
